
package ipad.asia.dao;

import ipad.asia.entity.PunishConsumer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PunishConsumerDao extends JpaRepository<PunishConsumer,Long> {
    /**
     * 登录时查看是否被处罚
     * @param consumerId
     * @return
     */
    List<PunishConsumer> findByConsumerId(int consumerId);
}

